package com.github.wui.ktEx

import android.widget.EditText
import android.widget.TextView


/**
 * 文本框 编辑框 方法
 * @author <a href="https://github.com/karai-oss">Mr.xie</a>
 * @Date 2025/4/23
 */


fun EditText.toText(): String {
    return this.text.toString();
}

fun TextView.endDot(dots: Int, char: Char): String {
    var text = this.text.toString()
    for (i in 0..dots) {
        text = text.plus(char)
    }
    this.text = text;
    return text;
}


/**
 * 文本是否为空
 */
fun EditText.textNone(): Boolean {
    return this.toText().isEmpty()
}
